package com.subway.babynote.syncservice;

import android.telephony.*;
import android.app.*;
import android.content.Context;

import android.os.*;

public class HardwareHelper {
	private static deviceManager dm = null;
	private static boolean canread = false;
	private static final String lockobj = "lockobj";
	public static boolean Init(Context c)
	{
		synchronized(lockobj)
		{
			if(!canread)			
			{
				dm = new deviceManager(c);
				canread = dm.Init();								
			}
			return canread;
		}
	}
	
	public static deviceManager getDM()
	{
		synchronized(lockobj)
		{
			if(canread)			
			{
				return dm;
			}
			else
				return null;			
		}
	}
	
}
